package forms;

import java.util.ArrayList;
import java.util.List;

import org.apache.struts.action.ActionForm;

public class adminAnaform extends ActionForm 
{
	private static final long serialVersionUID = 1L;
	
	private String whichpage = null;
	private List<displayform> majors = new ArrayList<displayform>();
	private List<displayform> specs = new ArrayList<displayform>();
	private List<nameform> names = new ArrayList<nameform>();
	private List<reviewerform> reviewers = new ArrayList<reviewerform>();
	
	public void updateReviewers(reviewerform newitem){
		reviewers.add(newitem);
	}
	
	public List<reviewerform> getReviewers() {
		return reviewers;
	}

	public void setReviewers(List<reviewerform> reviewers) {
		this.reviewers = reviewers;
	}

	public void resetNames(){
		names.clear();
	}	
	public void updateNames(nameform newitem){
		names.add(newitem);
	}
	
	public List<nameform> getNames() {
		return names;
	}

	public void setNames(List<nameform> names) {
		this.names = names;
	}

	public void updateMajors(displayform newitem){
		majors.add(newitem);
	}

	public void updateSpecs(displayform newitem){
		specs.add(newitem);
	}
	
	public String getWhichpage() {
		return whichpage;
	}
	public void setWhichpage(String whichpage) {
		this.whichpage = whichpage;
	}
	public List<displayform> getMajors() {
		return majors;
	}
	public void setMajors(List<displayform> majors) {
		this.majors = majors;
	}
	public List<displayform> getSpecs() {
		return specs;
	}
	public void setSpecs(List<displayform> specs) {
		this.specs = specs;
	}
}
